package com.dingreading.cloud.admin.service;

import com.dingreading.cloud.admin.entity.DeliveryWarehouse;
import com.dingreading.cloud.common.util.PageUtil;
import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;

import java.util.List;

/**
 * 服务层。
 *
 * @author Administrator
 * @since 2024-02-21
 */
public interface DeliveryWarehouseService extends IService<DeliveryWarehouse> {

    Page<DeliveryWarehouse> pageList(PageUtil pageUtil, String name, Integer enabled);

    /**
     * 批量修改状态
     */
    boolean updateStatus(Long id, Integer enabled);

    List<DeliveryWarehouse> getByType(int type);

}
